/**
 * fileName:  ResourcesStore.java
 * author:  Lei
 * Company:  Cloudland Studio
 * Createdate:  2014-3-1 下午4:21:22
 *
 * All rights Reserved, Designed By cloudland Copyright(C) 2010-2020
 *   
 * Modification  History:
 *     Date           Author        Version        
 * -------------------------------------------
 * 2014-3-1          Lei            1.0        
 *
 * Why & What is modified:
 * 1.0: 文件创建
 */
package org.cloudland.commercial.uphold.handler;

 /**
 * <pre> 
 * 资源维护接口。
 * </pre>
 * @ClassName  ResourcesStore
 * @author  Lei
 * @version  %I%, %G%
 * @see  
 * @since   JDK1.6
 *
 */
public interface ResourcesStore {
	
	/**
	 * <pre>
	 * 创建新资源
	 * </pre>
	 *
	 * @return  资源信息
	 */
	ResourcesEditor createResource();
	
	/**
	 * <pre>
	 * 查询资源按编号
	 * </pre>
	 *
	 * @param resourceId 资源编号
	 * @return  资源信息
	 */
	ResourcesEditor findById(String resourceId);
	
	/**
	 * <pre>
	 * 查询所有根级资源信息
	 * </pre>
	 *
	 * @return 资源信息
	 */
	ResourcesEditor[] findRootResources();
	
	/**
	 * <pre>
	 * 删除资源信息按编号
	 * </pre>
	 *
	 * @param resourceId 资源编号
	 * @return 删除成功返回 true
	 */
	Boolean remove(String resourceId);

}
